Using Jupyter via SSH tunneling
You may want to use VSCode‘s RemoteSSH plugin, which provides a seamless integration.
On a remote machine:
remote_user@remote_host$ jupyter notebook --no-browser --port=8889
then connect like this (remove -f
option to prevent it to run in the background):
local_user@local_host$ ssh -N -f -L localhost:8888:localhost:8889 remote_user@remote_host
Open a browser:
localhost:8888